<!DOCTYPE html>
<html xmlns:color="http://www.w3.org/1999/xhtml">
<head>
    <title>教师中心</title>
    <meta  charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.2/style/weui.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/jquery-weui/1.2.0/css/jquery-weui.min.css">
    <link rel="stylesheet" href="https://jqweui.cn/dist/demos/css/demos.css ">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_620103_4svvuqxc0widx6r.css">
    <link rel="stylesheet" href="//at.alicdn.com/t/font_547740_ynd83ktl0356zuxr.css">
    <script src="__TMPL__/public/assets/js/jquery-2.1.4.js"></script>
    <script src="__TMPL__/public/assets/js/fastclick.js"></script>
    <script src="__TMPL__/public/assets/js/mui.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-weui/1.2.0/js/jquery-weui.js"></script>
    <style type="text/css">
        body{background-color: #eeefef}
        .weui-cell{font-size: 16px;padding: 10px 15px}
        .iconfont{font-size: 19px;}
        .liuyan{border-bottom: 1px solid #f0f0f0}
        .bianju{margin-top: -1px;}
    </style>
</head>

<body ontouchstart style="background: #eeefef">
<div class="page__bd"  style="background:rgba(110, 109, 109, 0.16)">
    <div class="page__bd">
        <div class="weui-flex" style="background: #FCFCFC;height: 45px">
            <div class="weui-flex__item" style="margin-top: 15px;">
                <div class="placeholder"style="margin-left: 10px;margin-top: -6px;" >
                    <a href="{:url('portal/index/index')}">
                        <span  style="color: #04BE02;font-size: 20px;font-weight: 900;"  onclick="history.back()"  class="icon bb icon-fanhui" ></span>
                    </a>
                </div>
            </div>

            <div class="weui-flex__item">
                <div class="placeholder" style="font-size: 17px;text-align: center;margin-top: 12px;">教师中心</div>
            </div>

            <div class="weui-flex__item"><div class="placeholder" ></div></div>
        </div>
        <form  method="post" action="{:url('Teacher/t11')}" enctype="multipart/form-data" id="form">
            <div class="weui-panel weui-panel_access"  style="margin-top: 0px">
                <div class="weui-panel__bd">
                    <a class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd">
                            <img class="weui-media-box__thumb" id="tximg" style="border-radius: 50px;"  src="{$data.picture}">
                            <input type="file" name="tx" id="picup" onchange="displayPic()" value="sdkfls" style=" opacity: 0;position: absolute;z-index: 10;padding-left: -31px;margin-top: -50px;margin-left: -50px;padding-top: 20px;">
                        </div>
                        <script>
                            function displayPic(){
                                /* var fileName="";
                                 fileName = document.getElementById('picup').value;
                                 $("#tximg").attr("src",fileName);
                                 document.getElementById('tximg').attr('src',fileName);
                                 console.log(fileName);*/
                                var formData = new FormData(document.getElementById("form"));//表单id
                                console.log(document.getElementById('picup').value);
                                $.ajax({
                                    //路径应符合规范
                                    url: '{:url("portal/teacher/txset")}' ,
                                    type: 'POST',
                                    data: formData,
                                    async: false,
                                    cache: false,
                                    contentType: false,
                                    processData: false,
                                    success: function (result) {
                                        console.log(result);
                                        if(result){
                                            //其返回值为带引号的图片路径 例：\/upload/"jo.jpg"  \/upload/jo.jpg"  \/upload/ jo.jpg \upload/ jo.jpg
                                            $("#tximg").attr("src",result.replace("\"", '').replace("\"", '').replace('\\', ''));

                                        }

                                    }
                                });
                            }
                        </script>
                        <div class="weui-media-box__bd" style="margin-left: 5%;margin-top: -5px">
                            <h4 class="weui-media-box__title">{$data.name}老师</h4>
                            <p class="weui-media-box__desc" style="margin-top: 5px">有关课程实力数据</p>
                        </div>
                    </a>
                </div>
            </div>
        </form >
        <div style="height: 8px;background-color: #eeefef"></div>
        <div class="weui-panel bianju">
            <div class="weui-panel__bd">
                <div class="weui-media-box weui-media-box_small-appmsg">
                    <div class="weui-cells">
                        <a class="weui-cell weui-cell_access " href="{:cmf_url('/portal/teacher/teacher1')}">
                            <div class="weui-cell__hd"  style="margin: 0px 10px  ">
                                <span style="color: #a2a3a3;font-size: 19px" class="icon iconfont icon-geren"></span>
                            </div>
                            <div class="weui-cell__bd weui-cell_primar">
                                <p>个人资料</p>
                                <span  style="color: red;position: absolute;right:40px;top: 18px;font-size: 12px">{$t1}</span>
                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <a class="weui-cell weui-cell_access " href="{:cmf_url('/portal/teacher/fengcai')}">
                            <div class="weui-cell__hd"  style="margin: 0px 10px  ">
                                <span style="color: #a2a3a3;font-size: 19px" class="icon iconfont icon-zhaopian"></span>
                            </div>
                            <div class="weui-cell__bd weui-cell_primar">
                                <p>个人风采</p>
                                <span  style="color: red;position: absolute;right:40px;top: 18px;font-size: 12px">{$fc}</span>
                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <a class="weui-cell weui-cell_access" href="{:url('/portal/teacher/teacher5')}">
                            <div class="weui-cell__hd"  style="margin: 0px 10px ">
                                <span  style="color: #a2a3a3;font-size: 18px"  class="icon iconfont icon-xuexiao "></span>
                            </div>
                            <div class="weui-cell__bd weui-cell_primary">
                                <p>毕业院校</p>
                                <span  style="color: red;position: absolute;right:40px;top: 18px;font-size: 12px">{$t5}</span>
                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <div style="height: 8px;background-color: #eeefef"></div>
                        <a class="weui-cell weui-cell_access" href="{:url('/portal/teacher/teacher2')}">
                            <div class="weui-cell__hd"  style="margin: 0px 10px ">
                                <span style="color: #a2a3a3;font-size: 18px" class="icon iconfont icon-tesefuwu"></span>
                            </div>
                            <div class="weui-cell__bd weui-cell_primary">
                                <p>教学特点</p>
                                <span  style="color: red;position: absolute;right:40px;top: 18px;font-size: 12px">{$t2}</span>
                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <a class="weui-cell weui-cell_access" href="{:url('/portal/teacher/teacher3')}">
                            <div class="weui-cell__hd"  style="margin: 0px 10px  ">
                                <span style="color: #a2a3a3;font-size: 19px" class="icon  iconfont icon-mingxinganli"></span>
                            </div>
                            <div class="weui-cell__bd weui-cell_primary">
                                <p>成功案例</p>
                                <span  style="color: red;position: absolute;right:40px;top: 18px;font-size: 12px">{$t3}</span>
                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <a class="weui-cell weui-cell_access" href="{:url('/portal/teacher/teacher4')}">
                            <div class="weui-cell__hd"  style="margin: 0px 10px  ">
                                <span style="color: #a2a3a3;font-size: 21px" class="icon iconfont icon-boshimao"></span>
                            </div>
                            <div class="weui-cell__bd weui-cell_primary">
                                <p>教学经历</p>
                                <span  style="color: red;position: absolute;right:40px;top: 18px;font-size: 12px">{$t4}</span>
                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <a class="weui-cell weui-cell_access" href="{:url('/portal/teacher/renzheng')}">
                            <div class="weui-cell__hd"  style="margin: 0px 10px  ">
                                <span style="color: #a2a3a3;font-size: 21px" class="icon iconfont icon-approve"></span>
                            </div>
                            <div class="weui-cell__bd weui-cell_primary">
                                <p>认证中心</p>
                                <span  style="color: red;position: absolute;right:40px;top: 18px;font-size: 12px">{$xl}</span>
                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <div style="height: 8px;background-color: #eeefef"></div>
                        <a class="weui-cell weui-cell_access" href="{:url('/portal/teacher/teacher6')}">
                            <div class="weui-cell__hd"  style="margin: 0px 11px  ">
                                <span style="color: #a2a3a3;font-size: 17px" class="icon iconfont icon-kechengguanli"></span>
                            </div>
                            <div class="weui-cell__bd weui-cell_primary">
                                <p>课程管理</p>
                                <span  style="color: red;position: absolute;right:40px;top: 18px;font-size: 12px">{$t6}</span>
                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <a class="weui-cell weui-cell_access" href="{:url('/portal/teacher/subscribe_detail')}">
                            <div class="weui-cell__hd"  style="margin: 0px 10px  ">
                                <span style="color: #a2a3a3;font-size: 19px;margin-left: -1px;" class="icon iconfont icon-yuyueguanli"></span>
                            </div>
                            <div class="weui-cell__bd weui-cell_primary">
                                <p>预约管理</p>
                                <span  style="color: red;position: absolute;right:40px;top: 18px;font-size: 12px">{$t7}</span>
                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>
                        <a class="weui-cell weui-cell_access liuyan" href="{:url('/portal/teacher/liuyan_detail')}">
                            <div class="weui-cell__hd"  style="margin: 0px 11px  ">
                                <span style="color: #a2a3a3;font-size: 16px" class="icon iconfont icon-liuyan"></span>
                            </div>
                            <div class="weui-cell__bd weui-cell_primary">
                                <p style="margin-left: 1px">留言管理</p>
                                <span  style="color: red;position: absolute;right:40px;top: 18px;font-size: 12px">{$t8}</span>
                            </div>
                            <span class="weui-cell__ft"></span>
                        </a>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
